<!doctype html>
[#escape x as (x)!?html]
<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <title>${article.title} - ${site.seoTitle!site.title}</title>
  <meta name="keywords" content="${article.seoKeywords}">
  <meta name="description" content="${article.seoDescription}">
  [#include 'inc_meta.html'/]
  [#include 'inc_css.html'/]
  [#include 'inc_js.html'/]
</head>
<body>
[#include 'inc_header.html'/]
<div class="bg-gray-200">
  <div class="container">
    <nav class="row" aria-label="breadcrumb">
      <ol class="col list-inline my-2">
        <li class="list-inline-item"><a href="${site.url}">首页</a></li>
        [#list channel.paths as c]
          <li class="list-inline-item">/</li>
          <li class="list-inline-item">[@A bean=c/]</li>
        [/#list]
      </ol>
    </nav>
  </div>
</div>
<div class="container mt-4">
  <div class="row">
    <div class="col-md-4 mt-2">
      <img class="img-fluid" src="${article.image}">
    </div>
    <div class="col-md-8 mt-2">
      <h5 class="cm-ff-yh">${article.title}</h5>
      <div class="mt-3 pb-3 border-bottom text-muted">
        <span>${format(article.publishDate, 'yyyy-MM-dd HH:mm')}</span>
        <i class="ml-2 far fa-eye"></i> <span id="views"></span>
        <script>
          axios.get('${api}/article/view/${article.id?c}').then(function (response) {
            $('#views').text(response.data);
          });
        </script>
      </div>
      <div class="mt-3">
        <div class="mt-3"><span class="text-muted mr-2">优惠价</span><span class="text-danger">￥<span class="h3">${article.customs['price']}</span></span></div>
        <div class="mt-3"><span class="text-muted mr-2">厂商指导价</span><span>￥${article.customs['guidePrice']}</span></div>
      </div>
    </div>
  </div>

  <div class="row">
    <div class="col">
      <h5 class="border-bottom mt-4"><span class="cm-block-head-bottom">商品介绍</span></h5>
      <div class="article-content mt-3">[#noescape]${article.text!}[/#noescape]</div>
      <h5 class="border-bottom mt-4"><span class="cm-block-head-bottom">规格参数</span></h5>
      <div class="article-content mt-3">[#noescape]${article.customs['specifications']!}[/#noescape]</div>
      <script>$('.article-content img').addClass('img-fluid');</script>
      <ul class="mt-4 pt-2 list-unstyled border-top">
        [@ArticleNext id=article.id order=article.order channelId=article.channelId isDesc=article.channel.orderDesc; bean]
          <li class="text-truncate mt-2">
            <strong>上一条：</strong>[#if bean??][@A bean=bean class="cm-link"/][#else]没有了[/#if]
          </li>
        [/@ArticleNext]
        [@ArticlePrev id=article.id order=article.order channelId=article.channelId isDesc=article.channel.orderDesc; bean]
          <li class="text-truncate mt-2">
            <strong>下一条：</strong>[#if bean??][@A bean=bean class="cm-link"/][#else]没有了[/#if]
          </li>
        [/@ArticlePrev]
      </ul>

      <h5 class="mt-4 border-bottom"><span class="cm-block-head-bottom">相关新闻</span></h5>
      [@EsArticleList q=article.title excludeId=article.id limit=5; list]
        <ul class="list-unstyled mt-3">
          [#list list as bean]
            <li class="text-truncate mt-2">[@A bean=bean class="cm-link"/]</li>
          [/#list]
        </ul>
      [/@EsArticleList]
    </div>
  </div>
</div>
[#include 'inc_footer.html'/]
</body>
</html>
[/#escape]
